<script type="text/javascript" src="js/cat.js"></script>

  <h2>Products Categories Settings</h2> 
<?php 
	include('category_list.php');
?>
<a href="category_f.php?act=add" id="addCat" class="bt_green popup-button"><span class="bt_green_lft"></span><strong>Add new category</strong><span class="bt_green_r"></span></a>
    <div class="pagination">
        <?php 
			// list display
			foreach ($pages as $page) {
				// If page has a link
				if (isset ($page['url'])) 
				{  
					if($page['url'] != $currentPage) 
					{
		?>
					<a href="<?php echo $page['url']?>"><?php echo $page['text'] ?></a>
		<?php 		
					}
					else
					{ 
		?>
						<a href="<?php echo $page['url']?>">
                            <span class="current"><?php echo $page['text'] ?></span>
                        </a>
                        
			<?php 	}
				}
				// no link - just display the text
				else 
				{
					echo $page['text'];
				}
			} ?>
 </div> 
     
     <h2>&nbsp;</h2>
 <div id="popupCat"></div>
<div id="backgroundPopup"></div>